package com.chinameyer.workorders.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinameyer.workorders.bean.MeyerUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author meyer@HongYe
 */
@Repository
public interface UserMapper extends BaseMapper<MeyerUser> {
    @Select("select * from meyer_user where delete_time IS NULL ORDER BY id DESC limit #{start},#{limit}")
    List<MeyerUser> selectAllUsersWithPage(@Param("start") int start, @Param("limit") int limit);
}
